CPatient.cs
Code Type: C# Class
Uses Classes: CDataSet, string[2]
Uses PL/SQL Procedures: PCK_PATIENT.InitialEncounter, PCK_PATIENT.getPatientLookupRS, PCK_Patient.GetPatientPortalListRS, PCK_PATIENT.getPatientDemographicsRS, PCK_PATIENT.GetMilitaryDetailsRS, PCK_PATIENT.getPatientEmergencyContactRS, PCK_PATIENT.InsertPatientDemographics, PCK_PATIENT.UpdatePatientDemographics, PCK_PATIENT.InsertPatientEmergencyContact, PCK_PATIENT.UpdatePatientEmergencyContact, PCK_PATIENT.DelIncPatIntakeAssessments, PCK_PATIENT.IncPatIntakeAssessments, PCK_PATIENT.GetAllPatientsListRS, PCK_PATIENT_EVENTS.GetPatByEvtDueDateRS, PCK_PATIENT_EVENTS.GetPatByOverdueEvtRS

Lines of Code: 1027

public class CPatient

	Methods and properties used to load and save patient demographic data 

public CPatient()

	Default constructor 

public CPatient(BaseMaster BaseMstr)

	Constructor takes a BaseMaster 

public bool InitialEncounter( BaseMaster BaseMstr)

	Create an initial encounter 

public DataSet GetPatientLookupDS(BaseMaster BaseMstr,
                                      int iSelectedCases,
                                      int iSearchType,
                                      string strSearchValue
                                      )

	get a dataset of patients 

public DataSet GetPatientPortalListDS(BaseMaster BaseMstr)

	Get patient portal dataset 

public DataSet GetPatientDemographicsDS(BaseMaster BaseMstr)

	get a dataset of patients Demographics 

public DataSet GetPatientEmergencyContactDS(BaseMaster BaseMstr)

	get a dataset of patients Emergency Contacts 

public bool InsertPatientDemographics(BaseMaster BaseMstr,
                                        string strPatientID,
                                        string strEncounterID,
                                        string strFName,
                                        string strMi,
                                        string strLName,
                                        string strSponsorSSN,
                                        string strSSN,
                                        string strGender,
                                        string strDOB,
                                        string strProviderID,
                                        string strAddress1,
                                        string strAddress2,
                                        string strCity,
                                        string strPostalCode,
                                        string strHomePhone,
                                        string strCellPhone,
                                        string strWorkPhone,
                                        string strEmail,
                                        string strStateID,
                                        long lCallPreference,
                                        long lHomePhoneMsg,
                                        long lEmailMsg)

	Insert patient demographics 

public bool UpdatePatientDemographics(string strFName,
                                        string strMi,
                                        string strLName,
                                        string strSponsorSSN,
                                        string strSSN,
                                        string strGender,
                                        string strDOB,
                                        string strProviderID,
                                        string strAddress1,
                                        string strAddress2,
                                        string strCity,
                                        string strPostalCode,
                                        string strHomePhone,
                                        string strCellPhone,
                                        string strWorkPhone,
                                        string strEmail,
                                        string strStateID,
                                        long lCallPreference,
                                        long lHomePhoneMsg,
                                        long lEmailMsg)

	Update patient demographics 

public bool InsertPatientEmergencyContact(BaseMaster BaseMstr,
                                       string strName,
                                       int intRelationshipID,
                                       string strAddress1,
                                       string strCity,
                                       string strPostalCode,
                                       string strHomePhone,
                                       string strWorkPhone,
                                       string strEmail,
                                       int intStateID
                                     )

	Insert patient emergency contact 

public bool UpdatePatientEmergencyContact(BaseMaster BaseMstr,
                                        string strName,
                                        int intRelationshipID,
                                        string strAddress1,
                                        string strCity,
                                        string strPostalCode,
                                        string strHomePhone,
                                        string strWorkPhone,
                                        string strEmail,
                                        int intStateID
                                     )

	Update patient emergency contact 

public bool DelIncPatIntakeAssessments(BaseMaster BaseMstr,
                                           string strPatientID
                                           )                                 

	Delete patient intakes 

public bool IncPatIntakeAssessments(BaseMaster BaseMstr,
                                        string strPatientID
                                        )

	Does the patient have intakes 

public string[] GetPatientName(BaseMaster BaseMstr)

	Get the patient name as html 

public string GetPatientName(BaseMaster BaseMstr, string strPatientID)

	Get patient name info 

public string[] GetPatientDemoBlurb(BaseMaster BaseMstr)

	 Gets patient demographic info to be displayed on top of main working area 

public bool ValidatePatientDemographicRules(BaseMaster BaseMstr,
                                                int iFieldCode,
                                                string strData,
                                                out string strStatusOut)

	Validate patient demographic rules 

public int GetNumberSpacesCount(string str)

	gets the number of numbers in a string 

public int GetNumberCharCount(string str)

	gets the number of numbers in a string 

public int GetAlphaCharCount(string str)

	get alpha char count 

public int GetSpecialCharCount(string str)

	gets the number of special chars in a string... 

public int GetDateSpecialCharCount(string str)

	gets the number of special chars in a string... 

public int GetPhoneSpecialCharCount(string str)

	gets the number of special chars in a string 

public int GetCitySpecialCharCount(string str)

	gets the number of special chars in a string 

public int GetPostalCodeSpecialCharCount(string str)

	gets the number of special chars in a string 

public int GetNameSpecialCharCount(string str)

	gets the number of special chars in a string 

public DataSet GetAllPatientsListDS(BaseMaster BaseMstr)

	Get patient dataset 

	

